#include <func.h>

int main(int argc,char *argv[])
{
    if(fork()==0)
    {
        int fd1=open("file.txt",O_RDWR);
        write(fd1,"hello",5);
        close(fd1);

    }
    else
    {
        int fd2=open("file2.txt",O_RDWR);
        write(fd2,"world",5);
        close(fd2);
    }
    return 0;
}

